package com.qiyu.datasource.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 目前支持的数据源信息
 *
 * @author idea
 * @data 2020/3/7
 */
@AllArgsConstructor
@Getter
public enum SupportDatasourceEnum {

    PROD_DB("jdbc:mysql://prod.min.mall.com:3306/mall?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-prod"),

    TEST_DB_01("jdbc:mysql://prod.min.mall.com:3306/test-db01?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-test"),
    TEST_ORDER_DB("jdbc:mysql://prod.min.mall.com:3306/mall-order?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-test"),
    TEST_USER_DB("jdbc:mysql://prod.min.mall.com:3306/mall-user?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-test"),
    TEST_GOODS_DB("jdbc:mysql://prod.min.mall.com:3306/mall-goods?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-test"),

    DEV_DB("jdbc:mysql://dev.min.mall.com:3306/mall-dev?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-dev"),

    PRE_DB("jdbc:mysql://pre.min.mall.com:3306/mall-pre?useUnicode=true&characterEncoding=utf8", "root", "cqmyg;ysdss1997LinHao", "db-pre");

    String url;
    String username;
    String password;
    String databaseName;

    @Override
    public String toString() {
        return super.toString().toLowerCase();
    }
}
